package board;

import java.util.Comparator;

public class HighlightRequestComparator implements Comparator<HighlightRequest> {

    public int compare(HighlightRequest o1, HighlightRequest o2) {
	if(o1.equals(o2))
	    return 0;
	else if(o1.getHighlightType() == HighlightType.MOVE)
	    return -1;
	else if (o2.getHighlightType() == HighlightType.MOVE)
	    return 1;
	else
	    return -1;
    }
}
